// window.addEventListener('load', function () {

    // 点击第一层导航展开本层
    var firstLis = $(".navLeft .first-li");

    //记录点击展开关闭
    var flag = true;
    firstLis.click(function () {
        // console.log($(this));
        if (flag) {
            // console.log($(this));
            $(this).children(".second-ul").show();
            let firSblings = $(this).siblings();
            firSblings.each((index, item) => {
                $(item).children(".second-ul").hide();
            })
            flag = false;
        }else {
            $(this).children(".second-ul").hide();
            flag = true;
        }

    })

    //    点击第二层导航展开本层
    var seflag = true;
    var secondLis = $(".second-li");
    secondLis.click(function (e) {
        e.stopPropagation();
        // console.log($(this));
        if (seflag) {
            console.log($(this));
            console.log($(this).children(".third-ul"));
            $(this).children(".third-ul").show();
            let firSblings = $(this).siblings();
            firSblings.each((index, item) => {
                $(item).children(".third-ul").hide();
            })
            seflag = false;
        } else {
            $(this).children(".third-ul").hide();
            seflag = true;
        }
    })
// })